package git.soulbgm.pojo.entity;

import javax.persistence.Id;
import git.soulbgm.common.annotation.IdBuild;
import git.soulbgm.common.enums.IdType;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

/**
 * 用户与角色关联表
 *
 * @author SoulBGM
 * @version V1.0
 * @date 2020-08-11 15:02:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserRole {

    /**
     * ID
     */
    @Id
    @IdBuild(IdType.SEQUENCE)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 角色ID
     */
    private Long roleId;


}